if not exists(select * from sys.tables where name='Sys_DataSync')
begin
CREATE TABLE [dbo].[Sys_DataSync](
	[ID] [int] IDENTITY(1,1) NOT NULL primary key,
	[SyncTable] [nvarchar](100) NOT NULL,
	[SyncFlagField] [varchar](50) NOT NULL,
	[SyncSourceBillNo] [nvarchar](100) NOT NULL,
	[SyncType] [varchar](10) NOT NULL,
	[SyncCount] [int] default(0) NOT NULL,
	[CreateDate] [datetime] default(GETDATE()) NOT NULL,
)
end